package com.yunxi.dao.dealer;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.dealer.pojo.ExportPartnerVO;
import com.yunxi.dealer.pojo.ExportPartnerVOUps;
import com.yunxi.dealer.pojo.PartnerVO;
import com.yunxi.model.dealer.Partner;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 渠道商信息 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-05-13
 */
public interface PartnerMapper extends BaseMapperPlus<Partner> {
   PartnerVO load(@Param("partnerCode")String partnerCode,@Param("tenantId")String tenantId);

    PartnerVO getCasById(String partnerId);

    PartnerVO getByUserCode(Map map);

    List listSel(PartnerVO v);

   List<PartnerVO> listByAreaCode(PartnerVO v);

   String leastPartner(@Param("clueType")String clueType, @Param("province")String province,@Param("vehicleCode")String vehicleCode,@Param("city")String city);

    PartnerVO getByPartnerCode(String partnerCode);

   PartnerVO getByBusinessCode(@Param("businessCode")String businessCode);

   List<PartnerVO> listByProductAuth(@Param("partnerCode")String partnerCode, @Param("productTypeCode")String productTypeCode);

   String getPartnerType(@Param("partnerCode")String partnerCode);

   String getAccountGroupCode(@Param("partnerCode")String partnerCode);

   String getPartnerCodeByPartnerName(@Param("partnerName")String partnerName);

    List<ExportPartnerVO> exportPartnerPMS(PartnerVO partnerVO);

    List<ExportPartnerVOUps> exportPartnerUPS(PartnerVO partnerVO);
}
